<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" href="../../style.css" type="text/css" media="screen">
<link rel="stylesheet" href="../../print.css" type="text/css" media="print">
<link rel="stylesheet" href="../../prettify.css" type="text/css">
<meta content="MServerConnector,mymyoux.io.MServerConnector,INCORRECT_DATA,NAME_ALREADY_EXIST,NO_SERVER,hServer,rooms,contacts,me,addRoom,addServer,destroy,genericDispatchEvent,hasRoom,onClose,onConnect,onError,onRoomClosed,remServer,tryReconnectServer,updateProfil" name="keywords">
<title>mymyoux.io.MServerConnector</title>
</head>
<body>
<script type="text/javascript" language="javascript" src="../../prettify.js"></script><script type="text/javascript" language="javascript" src="../../asdoc.js"></script><script type="text/javascript" language="javascript" src="../../cookies.js"></script><script type="text/javascript" language="javascript">
<!--
				asdocTitle = 'MServerConnector - Mymyoux's Classes AS3 Reference';
				var baseRef = '../../';
				window.onload = configPage;
			--></script>
<table style="display:none" id="titleTable" cellspacing="0" cellpadding="0" class="titleTable">
<tr>
<td align="left" class="titleTableTitle">Mymyoux's Classes AS3 Reference</td><td align="right" class="titleTableTopNav"><a onclick="loadClassListFrame('../../all-classes.html')" href="../../package-summary.html">All&nbsp;Packages</a>&nbsp;|&nbsp;<a onclick="loadClassListFrame('../../all-classes.html')" href="../../class-summary.html">All&nbsp;Classes</a>&nbsp;|&nbsp;<a onclick="loadClassListFrame('../../index-list.html')" href="../../all-index-A.html">Index</a>&nbsp;|&nbsp;<a href="../../index.html?mymyoux/io/MServerConnector.html&amp;mymyoux/io/class-list.html" id="framesLink1">Frames</a><a onclick="parent.location=document.location" href="" style="display:none" id="noFramesLink1">No&nbsp;Frames</a></td><td rowspan="3" align="right" class="titleTableLogo"><img alt="Adobe Logo" title="Adobe Logo" class="logoImage" src="../../images/logo.jpg"></td>
</tr>
<tr class="titleTableRow2">
<td align="left" id="subTitle" class="titleTableSubTitle">Class&nbsp;MServerConnector</td><td align="right" id="subNav" class="titleTableSubNav"><a href="#propertySummary">Properties</a>&nbsp;| <a href="#methodSummary">Methods</a>&nbsp;| <a href="#eventSummary">Events</a>&nbsp;| <a href="#constantSummary">Constants</a></td>
</tr>
<tr class="titleTableRow3">
<td colspan="2">&nbsp;</td>
</tr>
</table>
<script type="text/javascript" language="javascript">
<!--
if (!isEclipse() || window.name != ECLIPSE_FRAME_NAME) {titleBar_setSubTitle("Class MServerConnector"); titleBar_setSubNav(true,true,false,false,true,false,true,false,false,false,false,false,false,false);}
--></script>
<div class="MainContent">
<table cellspacing="0" cellpadding="0" class="classHeaderTable">
<tr>
<td class="classHeaderTableLabel">Package</td><td><a onclick="javascript:loadClassListFrame('class-list.html')" href="package-detail.html">mymyoux.io</a></td>
</tr>
<tr>
<td class="classHeaderTableLabel">Class</td><td class="classSignature">public class MServerConnector</td>
</tr>
<tr>
<td class="classHeaderTableLabel">Inheritance</td><td class="inheritanceList">MServerConnector <img class="inheritArrow" alt="Inheritance" title="Inheritance" src="../../images/inherit-arrow.gif"> <a href="../events/MEventDispatcher.html">MEventDispatcher</a> <img class="inheritArrow" alt="Inheritance" title="Inheritance" src="../../images/inherit-arrow.gif"> flash.events.EventDispatcher</td>
</tr>
</table>
<p></p>
  MServerConnector permet de se connecter facilement à un réseau de MServeurs
  <p></p>
<br>
<hr>
</div>
<a name="propertySummary"></a>
<div class="summarySection">
<div class="summaryTableTitle">Public Properties</div>
<div class="showHideLinks">
<div class="hideInheritedProperty" id="hideInheritedProperty">
<a onclick="javascript:setInheritedVisible(false,'Property');" href="#propertySummary" class="showHideLink"><img src="../../images/expanded.gif" class="showHideLinkImage"> Hide Inherited Public Properties</a>
</div>
<div class="showInheritedProperty" id="showInheritedProperty">
<a onclick="javascript:setInheritedVisible(true,'Property');" href="#propertySummary" class="showHideLink"><img src="../../images/collapsed.gif" class="showHideLinkImage"> Show Inherited Public Properties</a>
</div>
</div>
<table id="summaryTableProperty" class="summaryTable " cellpadding="3" cellspacing="0">
<tr>
<th>&nbsp;</th><th colspan="2">Property</th><th class="summaryTableOwnerCol">Defined&nbsp;by</th>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#contacts">contacts</a> : <a href="mserverconnectorClasses/MPlaylist.html">MPlaylist</a>
<div class="summaryTableDescription">[read-only]
   MServerIdentifier représentant le joueur.</div>
</td><td class="summaryTableOwnerCol">MServerConnector</td>
</tr>
<tr class="hideInheritedProperty">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol"><img class="inheritedSummaryImage" title="Inherited" alt="Inherited" src="../../images/inheritedSummary.gif"></td><td class="summaryTableSignatureCol"><a class="signatureLink" href="../events/MEventDispatcher.html#length">length</a> : uint<div class="summaryTableDescription">
   Indique le nombre d'écouteurs liés au MDispatcherEvent
   </div>
</td><td class="summaryTableOwnerCol"><a href="../events/MEventDispatcher.html">MEventDispatcher</a></td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#me">me</a> : <a href="mserverconnectorClasses/MServerIdentifier.html">MServerIdentifier</a>
<div class="summaryTableDescription">[read-only]
   MServerIdentifier représentant le joueur.</div>
</td><td class="summaryTableOwnerCol">MServerConnector</td>
</tr>
</table>
</div>
<a name="protectedPropertySummary"></a>
<div class="summarySection">
<div class="summaryTableTitle">Protected Properties</div>
<table id="summaryTableProtectedProperty" class="summaryTable " cellpadding="3" cellspacing="0">
<tr>
<th>&nbsp;</th><th colspan="2">Property</th><th class="summaryTableOwnerCol">Defined&nbsp;by</th>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#hServer">hServer</a> : <a href="../utils/Hash.html">Hash</a>
<div class="summaryTableDescription">
   Associe à chaque  serveur(MadvSocket) un ou plusieurs noms
   </div>
</td><td class="summaryTableOwnerCol">MServerConnector</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#rooms">rooms</a> : <a href="../utils/Hash.html">Hash</a>
<div class="summaryTableDescription">
   Liste les salons ouverts.</div>
</td><td class="summaryTableOwnerCol">MServerConnector</td>
</tr>
</table>
</div>
<a name="methodSummary"></a>
<div class="summarySection">
<div class="summaryTableTitle">Public Methods</div>
<div class="showHideLinks">
<div class="hideInheritedMethod" id="hideInheritedMethod">
<a onclick="javascript:setInheritedVisible(false,'Method');" href="#methodSummary" class="showHideLink"><img src="../../images/expanded.gif" class="showHideLinkImage"> Hide Inherited Public Methods</a>
</div>
<div class="showInheritedMethod" id="showInheritedMethod">
<a onclick="javascript:setInheritedVisible(true,'Method');" href="#methodSummary" class="showHideLink"><img src="../../images/collapsed.gif" class="showHideLinkImage"> Show Inherited Public Methods</a>
</div>
</div>
<table id="summaryTableMethod" class="summaryTable " cellpadding="3" cellspacing="0">
<tr>
<th>&nbsp;</th><th colspan="2">Method</th><th class="summaryTableOwnerCol">Defined&nbsp;by</th>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#MServerConnector()">MServerConnector</a>(identifiant:<a href="mserverconnectorClasses/MServerIdentifier.html">MServerIdentifier</a>)</div>
<div class="summaryTableDescription">
   Crée un nouvel objet MServerConnector
   </div>
</td><td class="summaryTableOwnerCol">MServerConnector</td>
</tr>
<tr class="hideInheritedMethod">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol"><img class="inheritedSummaryImage" title="Inherited" alt="Inherited" src="../../images/inheritedSummary.gif"></td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="../events/MEventDispatcher.html#addEventListener()">addEventListener</a>(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void</div>
<div class="summaryTableDescription">
   Enregistre un écouteur(listener) avec le MEventDispatcher pour que cet écouteur reçoive les notifications d'un évènement.</div>
</td><td class="summaryTableOwnerCol"><a href="../events/MEventDispatcher.html">MEventDispatcher</a></td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#addRoom()">addRoom</a>(name:String):<a href="mserverconnectorClasses/MRoom.html">MRoom</a>
</div>
<div class="summaryTableDescription">
   Créée un nouveau salon
   </div>
</td><td class="summaryTableOwnerCol">MServerConnector</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#addServer()">addServer</a>(name:String, ip:String, port:uint, password:String = ""):void</div>
<div class="summaryTableDescription">
   Ajoute un serveur à la liste des connexions
   </div>
</td><td class="summaryTableOwnerCol">MServerConnector</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#destroy()">destroy</a>():void</div>
<div class="summaryTableDescription">
   
   
   Détruit l'instance en prenant soin de supprimer tous les écouteurs et autres facteurs de fuites de mémoire.</div>
</td><td class="summaryTableOwnerCol">MServerConnector</td>
</tr>
<tr class="hideInheritedMethod">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol"><img class="inheritedSummaryImage" title="Inherited" alt="Inherited" src="../../images/inheritedSummary.gif"></td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="../events/MEventDispatcher.html#equals()">equals</a>(objet:<a href="../core/IObject.html">IObject</a>):Boolean</div>
<div class="summaryTableDescription">
   
   Renvoie un Boolean indiquant si l'objet envoyé en paramètre est équivalent ou non à l'instance.</div>
</td><td class="summaryTableOwnerCol"><a href="../events/MEventDispatcher.html">MEventDispatcher</a></td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#hasRoom()">hasRoom</a>(name:String):Boolean</div>
<div class="summaryTableDescription">
   Renvoie un boolean indiquant si oui ou non le salon a déjà été créée.</div>
</td><td class="summaryTableOwnerCol">MServerConnector</td>
</tr>
<tr class="hideInheritedMethod">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol"><img class="inheritedSummaryImage" title="Inherited" alt="Inherited" src="../../images/inheritedSummary.gif"></td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="../events/MEventDispatcher.html#removeAllEventListener()">removeAllEventListener</a>():void</div>
<div class="summaryTableDescription">
   Supprime tous les écouteurs liés au MEventDispatcher pour qu'ils ne reçoivent plus d'évènements.</div>
</td><td class="summaryTableOwnerCol"><a href="../events/MEventDispatcher.html">MEventDispatcher</a></td>
</tr>
<tr class="hideInheritedMethod">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol"><img class="inheritedSummaryImage" title="Inherited" alt="Inherited" src="../../images/inheritedSummary.gif"></td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="../events/MEventDispatcher.html#removeEventListener()">removeEventListener</a>(type:String, listener:Function, useCapture:Boolean = false):void</div>
<div class="summaryTableDescription">
   Supprime un écouteur(listener) du MEventDispatcher pour que cet écouteur ne reçoive plus les notifications d'un évènement.</div>
</td><td class="summaryTableOwnerCol"><a href="../events/MEventDispatcher.html">MEventDispatcher</a></td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#remServer()">remServer</a>(name:String):void</div>
<div class="summaryTableDescription">
   Supprime un serveur à la liste des connexions.</div>
</td><td class="summaryTableOwnerCol">MServerConnector</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#tryReconnectServer()">tryReconnectServer</a>(name:String):void</div>
<div class="summaryTableDescription">
   Essaye de reconnecter un MAdvSocket qui s'est déconnecté ou a rencontré une erreur.</div>
</td><td class="summaryTableOwnerCol">MServerConnector</td>
</tr>
</table>
</div>
<a name="protectedMethodSummary"></a>
<div class="summarySection">
<div class="summaryTableTitle">Protected Methods</div>
<table id="summaryTableProtectedMethod" class="summaryTable " cellpadding="3" cellspacing="0">
<tr>
<th>&nbsp;</th><th colspan="2">Method</th><th class="summaryTableOwnerCol">Defined&nbsp;by</th>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#genericDispatchEvent()">genericDispatchEvent</a>(o:Object, s:String):void</div>
<div class="summaryTableDescription">
   Dispatche les evenements de connexion,fermeture et erreur en les associants aux noms de serveurs correspondants
   </div>
</td><td class="summaryTableOwnerCol">MServerConnector</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#onClose()">onClose</a>(e:<a href="../events/MAdvSocketEvent.html">MAdvSocketEvent</a>):void</div>
<div class="summaryTableDescription">
   Appelé à la fermeture d'un serveur (MadvSocket)
   </div>
</td><td class="summaryTableOwnerCol">MServerConnector</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#onConnect()">onConnect</a>(e:<a href="../events/MAdvSocketEvent.html">MAdvSocketEvent</a>):void</div>
<div class="summaryTableDescription">
   Appelé à la connexion d'un serveur (MadvSocket)
   </div>
</td><td class="summaryTableOwnerCol">MServerConnector</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#onError()">onError</a>(e:<a href="../events/MAdvSocketEvent.html">MAdvSocketEvent</a>):void</div>
<div class="summaryTableDescription">
   Appelé lors d'une erreur d'un serveur (MadvSocket)
   </div>
</td><td class="summaryTableOwnerCol">MServerConnector</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#onRoomClosed()">onRoomClosed</a>(e:<a href="../events/MAdvSocketEvent.html">MAdvSocketEvent</a>):void</div>
<div class="summaryTableDescription">
   Appelée lorsqu'un salon se ferme.</div>
</td><td class="summaryTableOwnerCol">MServerConnector</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#updateProfil()">updateProfil</a>(e:<a href="../events/MServerIdentifierEvent.html">MServerIdentifierEvent</a>):void</div>
<div class="summaryTableDescription">
   Met à jour le profil sur tous les MServeurs.</div>
</td><td class="summaryTableOwnerCol">MServerConnector</td>
</tr>
</table>
</div>
<a name="eventSummary"></a>
<div class="summarySection">
<div class="summaryTableTitle">Events</div>
<table id="summaryTableEvent" class="summaryTable " cellpadding="3" cellspacing="0">
<tr>
<th>&nbsp;</th><th colspan="2">Event</th><th>Summary</th><th class="summaryTableOwnerCol">Defined&nbsp;by</th>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#event:close">close</a>
</div>
</td><td class="summaryTableDescription summaryTableCol">
         MServerconnector dispatche l'event close
         quand un MAdvSocket s'est déconnecté.</td><td class="summaryTableOwnerCol">MServerConnector</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#event:connect">connect</a>
</div>
</td><td class="summaryTableDescription summaryTableCol">
         MServerconnector dispatche l'event connect
         quand un MAdvSocket s'est connecté.</td><td class="summaryTableOwnerCol">MServerConnector</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#event:error">error</a>
</div>
</td><td class="summaryTableDescription summaryTableCol">
         MServerconnector dispatche l'event error
         quand un MAdvSocket a dispatché une erreur.</td><td class="summaryTableOwnerCol">MServerConnector</td>
</tr>
</table>
</div>
<a name="constantSummary"></a>
<div class="summarySection">
<div class="summaryTableTitle">Public Constants</div>
<table id="summaryTableConstant" class="summaryTable " cellpadding="3" cellspacing="0">
<tr>
<th>&nbsp;</th><th colspan="2">Constant</th><th class="summaryTableOwnerCol">Defined&nbsp;by</th>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#INCORRECT_DATA">INCORRECT_DATA</a> : uint = 2<div class="summaryTableDescription">[static]
   Erreur renvoyée si l'ip spécifiée est vide
   ou si le port spéciée est en dehors de l'intervalle ]1024;65355[
   ou si le nom du serveur spécifié est vide ou a la valeur "default"
   </div>
</td><td class="summaryTableOwnerCol">MServerConnector</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#NAME_ALREADY_EXIST">NAME_ALREADY_EXIST</a> : uint = 1<div class="summaryTableDescription">[static]
   Erreur renvoyée si le nom du serveur spécifié est déjà utilisé
   </div>
</td><td class="summaryTableOwnerCol">MServerConnector</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#NO_SERVER">NO_SERVER</a> : uint = 0<div class="summaryTableDescription">[static]
   Erreur renvoyée si vous essayez de créer un salon alors qu'aucun serveur n'a été créée
   </div>
</td><td class="summaryTableOwnerCol">MServerConnector</td>
</tr>
</table>
</div>
<script type="text/javascript" language="javascript">
<!--
showHideInherited();
--></script>
<div class="MainContent">
<a name="propertyDetail"></a>
<div class="detailSectionHeader">Property detail</div>
<a name="contacts"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">contacts</td><td class="detailHeaderType">property</td>
</tr>
</table>
<div class="detailBody">
<code>contacts:<a href="mserverconnectorClasses/MPlaylist.html">MPlaylist</a></code>&nbsp;&nbsp;[read-only]<p>
   MServerIdentifier représentant le joueur. Ses modifications sont envoyés aux MServeurs.
   </p><span class="label">Implementation</span>
<br>
<code>&nbsp;&nbsp;&nbsp;&nbsp;public function get contacts():<a href="mserverconnectorClasses/MPlaylist.html">MPlaylist</a></code>
<br>
</div>
<a name="hServer"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">hServer</td><td class="detailHeaderType">property</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>protected var hServer:<a href="../utils/Hash.html">Hash</a></code><p>
   Associe à chaque  serveur(MadvSocket) un ou plusieurs noms
   </p></div>
<a name="me"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">me</td><td class="detailHeaderType">property</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>me:<a href="mserverconnectorClasses/MServerIdentifier.html">MServerIdentifier</a></code>&nbsp;&nbsp;[read-only]<p>
   MServerIdentifier représentant le joueur.
   S'il est modifié celà se répercute immédiatement sur le MServeur.
   </p><span class="label">Implementation</span>
<br>
<code>&nbsp;&nbsp;&nbsp;&nbsp;public function get me():<a href="mserverconnectorClasses/MServerIdentifier.html">MServerIdentifier</a></code>
<br>
</div>
<a name="rooms"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">rooms</td><td class="detailHeaderType">property</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>protected var rooms:<a href="../utils/Hash.html">Hash</a></code><p>
   Liste les salons ouverts.
   </p></div>
<a name="constructorDetail"></a>
<div class="detailSectionHeader">Constructor detail</div>
<a name="MServerConnector()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">MServerConnector</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">constructor</td>
</tr>
</table>
<div class="detailBody">
<code>public function MServerConnector(identifiant:<a href="mserverconnectorClasses/MServerIdentifier.html">MServerIdentifier</a>)</code><p>
   Crée un nouvel objet MServerConnector
   </p><span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">identifiant</span>:<a href="mserverconnectorClasses/MServerIdentifier.html">MServerIdentifier</a></code></td>
</tr>
</table>
</div>
<a name="methodDetail"></a>
<div class="detailSectionHeader">Method detail</div>
<a name="addRoom()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">addRoom</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td>
</tr>
</table>
<div class="detailBody">
<code>public function addRoom(name:String):<a href="mserverconnectorClasses/MRoom.html">MRoom</a></code><p>
   Créée un nouveau salon
   </p><span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">name</span>:String</code> &mdash; Nom du salon
   </td>
</tr>
</table>
<p></p>
<span class="label">Returns</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20"></td><td><code><a href="mserverconnectorClasses/MRoom.html">MRoom</a></code> &mdash; 
                        MRoom le salon correspondant
   
                        
                     </td>
</tr>
</table>
<br>
<span class="label">Throws</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20"></td><td><code><a href="../events/ErrorEvent.html">ErrorEvent</a> </code> &mdash; Renvoie une erreur si aucun serveur n'a été ajouté préalablement
   </td>
</tr>
</table>
</div>
<a name="addServer()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">addServer</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public function addServer(name:String, ip:String, port:uint, password:String = ""):void</code><p>
   Ajoute un serveur à la liste des connexions
   </p><span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">name</span>:String</code> &mdash; Nom du serveur
   </td>
</tr>
<tr>
<td class="paramSpacer">&nbsp;</td>
</tr>
<tr>
<td width="20px"></td><td><code><span class="label">ip</span>:String</code> &mdash; Ip du serveur
   </td>
</tr>
<tr>
<td class="paramSpacer">&nbsp;</td>
</tr>
<tr>
<td width="20px"></td><td><code><span class="label">port</span>:uint</code> &mdash; Port du serveur
   </td>
</tr>
<tr>
<td class="paramSpacer">&nbsp;</td>
</tr>
<tr>
<td width="20px"></td><td><code><span class="label">password</span>:String</code> (default = "<code></code>")<code></code> &mdash; Mot de passe nécessaire à l'acceptation par le serveur(vide par défaut)
   </td>
</tr>
</table>
<br>
<span class="label">Throws</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20"></td><td><code><a href="../events/ErrorEvent.html">ErrorEvent</a> </code> &mdash; Renvoie une erreur si le nom ou l'ip sont vides ou si le port est incorrect
   </td>
</tr>
</table>
</div>
<a name="destroy()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">destroy</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public override function destroy():void</code><p>
   
   
   Détruit l'instance en prenant soin de supprimer tous les écouteurs et autres facteurs de fuites de mémoire.
   </p></div>
<a name="genericDispatchEvent()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">genericDispatchEvent</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>protected function genericDispatchEvent(o:Object, s:String):void</code><p>
   Dispatche les evenements de connexion,fermeture et erreur en les associants aux noms de serveurs correspondants
   </p><span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">o</span>:Object</code> &mdash; Element qui dispatch l'evenement à la base
   </td>
</tr>
<tr>
<td class="paramSpacer">&nbsp;</td>
</tr>
<tr>
<td width="20px"></td><td><code><span class="label">s</span>:String</code> &mdash; ype de l'évènement dispatché
   </td>
</tr>
</table>
</div>
<a name="hasRoom()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">hasRoom</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public function hasRoom(name:String):Boolean</code><p>
   Renvoie un boolean indiquant si oui ou non le salon a déjà été créée.
   </p><span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">name</span>:String</code> &mdash; Nom du salon.
   </td>
</tr>
</table>
<p></p>
<span class="label">Returns</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20"></td><td><code>Boolean</code> &mdash; true si le salon a déjà été créée, false sinon.
   </td>
</tr>
</table>
</div>
<a name="onClose()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">onClose</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>protected function onClose(e:<a href="../events/MAdvSocketEvent.html">MAdvSocketEvent</a>):void</code><p>
   Appelé à la fermeture d'un serveur (MadvSocket)
   </p><span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">e</span>:<a href="../events/MAdvSocketEvent.html">MAdvSocketEvent</a></code> &mdash; MadvSocketEvent envoyé lors de la fermeture
   </td>
</tr>
</table>
</div>
<a name="onConnect()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">onConnect</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>protected function onConnect(e:<a href="../events/MAdvSocketEvent.html">MAdvSocketEvent</a>):void</code><p>
   Appelé à la connexion d'un serveur (MadvSocket)
   </p><span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">e</span>:<a href="../events/MAdvSocketEvent.html">MAdvSocketEvent</a></code> &mdash; MadvSocketEvent envoyé lors de la connexion
   </td>
</tr>
</table>
</div>
<a name="onError()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">onError</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>protected function onError(e:<a href="../events/MAdvSocketEvent.html">MAdvSocketEvent</a>):void</code><p>
   Appelé lors d'une erreur d'un serveur (MadvSocket)
   </p><span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">e</span>:<a href="../events/MAdvSocketEvent.html">MAdvSocketEvent</a></code> &mdash; MadvSocketEvent envoyé lors d'une erreur
   </td>
</tr>
</table>
</div>
<a name="onRoomClosed()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">onRoomClosed</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>protected function onRoomClosed(e:<a href="../events/MAdvSocketEvent.html">MAdvSocketEvent</a>):void</code><p>
   Appelée lorsqu'un salon se ferme.
   Permet de retirer celui-ci de la liste des salons.
   </p><span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">e</span>:<a href="../events/MAdvSocketEvent.html">MAdvSocketEvent</a></code> &mdash; MAdvSocketEvent envoyé par le MAdvSocket qui hébergeait le salon.
   </td>
</tr>
</table>
</div>
<a name="remServer()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">remServer</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public function remServer(name:String):void</code><p>
   Supprime un serveur à la liste des connexions. La fonction n'effectue aucune action si le serveur n'existe pas.
   </p><span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">name</span>:String</code> &mdash; Nom du serveur à supprimer.
   </td>
</tr>
</table>
</div>
<a name="tryReconnectServer()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">tryReconnectServer</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public function tryReconnectServer(name:String):void</code><p>
   Essaye de reconnecter un MAdvSocket qui s'est déconnecté ou a rencontré une erreur. Ne fais rien si le nom est incorrect ou le Socket toujours connecté
   </p><span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">name</span>:String</code> &mdash; Nom du serveur
   </td>
</tr>
</table>
</div>
<a name="updateProfil()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">updateProfil</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>protected function updateProfil(e:<a href="../events/MServerIdentifierEvent.html">MServerIdentifierEvent</a>):void</code><p>
   Met à jour le profil sur tous les MServeurs.
   Appelé lors d'une modification de identifiant par la fonction put ou rem.
   L'appel est ignoré si l'appel à put ou rem n'est pas nécessaire.
   </p><span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">e</span>:<a href="../events/MServerIdentifierEvent.html">MServerIdentifierEvent</a></code></td>
</tr>
</table>
</div>
<div class="detailSectionHeader">Event detail</div>
<a name="event:close"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">close</td><td class="detailHeaderType">event&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<span class="label">Event object type: </span><a href="../events/MServerConnectorEvent.html"><code>mymyoux.events.MServerConnectorEvent</code></a>
<br>
<p></p><p>
         MServerconnector dispatche l'event close
         quand un MAdvSocket s'est déconnecté.
         </p></div>
<a name="event:connect"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">connect</td><td class="detailHeaderType">event&nbsp;</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<span class="label">Event object type: </span><a href="../events/MServerConnectorEvent.html"><code>mymyoux.events.MServerConnectorEvent</code></a>
<br>
<p></p><p>
         MServerconnector dispatche l'event connect
         quand un MAdvSocket s'est connecté.
         </p></div>
<a name="event:error"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">error</td><td class="detailHeaderType">event&nbsp;</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<span class="label">Event object type: </span><a href="../events/MServerConnectorEvent.html"><code>mymyoux.events.MServerConnectorEvent</code></a>
<br>
<p></p><p>
         MServerconnector dispatche l'event error
         quand un MAdvSocket a dispatché une erreur.
         </p></div>
<a name="constantDetail"></a>
<div class="detailSectionHeader">Constant detail</div>
<a name="INCORRECT_DATA"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">INCORRECT_DATA</td><td class="detailHeaderType">constant</td>
</tr>
</table>
<div class="detailBody">
<code>public static const INCORRECT_DATA:uint = 2</code><p>
   Erreur renvoyée si l'ip spécifiée est vide
   ou si le port spéciée est en dehors de l'intervalle ]1024;65355[
   ou si le nom du serveur spécifié est vide ou a la valeur "default"
   </p></div>
<a name="NAME_ALREADY_EXIST"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">NAME_ALREADY_EXIST</td><td class="detailHeaderType">constant</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public static const NAME_ALREADY_EXIST:uint = 1</code><p>
   Erreur renvoyée si le nom du serveur spécifié est déjà utilisé
   </p></div>
<a name="NO_SERVER"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">NO_SERVER</td><td class="detailHeaderType">constant</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public static const NO_SERVER:uint = 0</code><p>
   Erreur renvoyée si vous essayez de créer un salon alors qu'aucun serveur n'a été créée
   </p></div>
<br>
<br>
<hr>
<br>
<p></p>
<center class="copyright"> 
</center>
</div>
</body>
</html>
<!-- -->
